home *** CD-ROM | disk | FTP | other *** search
/ Danny Amor's Online Library / Danny Amor's Online Library - Volume 1.iso / html / rfc / rfcxxxx / rfc1528 / __headers__.txt next >
Encoding:
Text File  |  1995-07-25  |  11.5 KB  |  226 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. Network Working Group                                         C. Malamud
  8. Request for Comments: 1528                 Internet Multicasting Service
  9. Obsoletes: 1486                                                  M. Rose
  10. Category: Experimental                      Dover Beach Consulting, Inc.                                                            October 1993
  11.  
  12.  
  13.            Principles of Operation for the TPC.INT Subdomain:                Remote Printing -- Technical Procedures
  14.  
  15. Status of this Memo
  16.  
  17.    This memo defines an Experimental Protocol for the Internet   community.  It does not specify an Internet standard.  Discussion and   suggestions for improvement are requested.  Please refer to the   current edition of the "Internet Official Protocol Standards" for the   standardization state and status of this protocol.  Distribution of   this memo is unlimited.
  18.  
  19. Table of Contents
  20.  
  21.    1. Introduction ..........................................   2   2. Naming, Addressing, and Routing .......................   2   2.1 Addressing ...........................................   2   2.2 Routing ..............................................   3   3. Procedure .............................................   3   3.1 Content-Types ........................................   4   3.2 Generating a Cover-Sheet .............................   4   3.3 Return Receipt .......................................   6   4. Usage Examples ........................................   6   4.1 Explicit Cover Sheet .................................   6   4.2 Implicit Cover Sheet .................................   7   4.3 Minimal, Text-only ...................................   7   5. Prototype Implementation ..............................   7   6. Future Issues .........................................   9   7. Security Considerations ...............................   9   8. Acknowledgements ......................................   9   9. References ............................................   9   10. Authors' Addresses ..................................   10   A. The application/remote-printing Content-Type .........   11   B. The image/tiff Content-Type ..........................   12
  22.  
  23. 1. Introduction
  24.  
  25.    Although electronic mail is preferable as a means of third-party   communication, in some cases it may be necessary to print   information, in hard-copy form, at a remote location.  The remote   output device may consist of a standard line printer, a printer with
  26.  
  27.  
  28.  
  29. Malamud & Rose                                                  [Page 1]
  30.  
  31. RFC 1528        Remote Printing -- Technical Procedures     October 1993
  32.  
  33.  
  34.    multiple fonts and faces, a printer that can reproduce graphics, or a   facsimile device.  Remote output may be accompanied by information   that identifies the intended recipient.  This memo describes a   technique for "remote printing" using the Internet mail   infrastructure.  In particular, this memo focuses on the case in   which remote printers are connected to the international telephone   network.
  35.  
  36. 2. Naming, Addressing, and Routing
  37.  
  38.    A printer is identified by a telephone number which corresponds to a   G3-facsimile device connected to the international telephone network,   e.g.,
  39.  
  40.       +1 415 968 2510
  41.  
  42.    where "+1" indicates the IDDD country code, and the remaining string   is a telephone number within that country.
  43.  
  44. 2.1 Addressing
  45.  
  46.    This number is used to construct the address of a remote printer   server, which forms the recipient address for the message, e.g.,   either
  47.  
  48.       remote-printer@0.1.5.2.8.6.9.5.1.4.1.tpc.int
  49.  
  50.       or
  51.  
  52.       remote-printer.ATOM@0.1.5.2.8.6.9.5.1.4.1.tpc.int
  53.  
  54.    where "ATOM" is an (optional) RFC 822 atom [1], an opaque string for   use in recipient identification when generating a cover-sheet, and   the domain-part is constructed by reversing the telephone number,   converting each digit to a domain-label, and being placed under   "tpc.int."
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. Malamud & Rose                                                  [Page 2]
  71.  
  72. RFC 1528        Remote Printing -- Technical Procedures     October 1993
  73.  
  74.  
  75.    Note that the mailbox syntax is purposefully restricted in the   interests of pragmatism.  To paraphrase RFC 822, an atom is defined   as:
  76.  
  77.       atom    = 1*atomchar
  78.  
  79.       atomchar=  <any upper or lowercase alphabetic character                 (A-Z a-z)>                / <any digit (0-9)>                / "!" / "#" / "$" / "%" / "&" / "'" / "*" / "+"                / "-" / "/" / "=" / "?" / "^" / "_" / "`" / "{"                / "|" / "}" / "~"
  80.  
  81.    Finally, note that some Internet mail software (especially gateways   from outside the Internet) impose stringent limitations on the size   of a mailbox-string.  Thus, originating user agents should take care   in limiting the local-part to no more than 70 or so characters.
  82.  
  83. 2.2 Routing
  84.  
  85.    The message is routed in exactly the same fashion as all other   electronic mail, i.e., using the MX algorithm [2].  Since a remote   printer server might be able to access many printers, the wildcarding   facilities of the DNS [3,4] are used accordingly.  For example, if a   remote printer server residing at "dbc.mtview.ca.us" was willing to   access any printer with a telephone number prefix of
  86.  
  87.       +1 415 968
  88.  
  89.    then this resource record might be present
  90.  
  91.       *.8.6.9.5.1.4.1.tpc.int.    IN MX 10 dbc.mtview.ca.us.
  92.  
  93.    Naturally, if several remote printer servers were willing to access   any printer in that prefix, multiple MX resource records would be   present.
  94.  
  95.    It should be noted that the presence of a wildcard RR which matches a   remote printer server's address does not imply that the corresponding   telephone number is valid, or, if valid, that a G3-facsimile device   is connected at the phone number.
  96.  
  97. 3. Procedure
  98.  
  99.    When information is to be remotely printed, the user application   constructs an RFC 822 message, containing a "Message-ID" field.
  100.  
  101.  
  102.  
  103.  
  104.  
  105. Malamud & Rose                                                  [Page 3]
  106.  
  107. RFC 1528        Remote Printing -- Technical Procedures     October 1993
  108.  
  109.  
  110.    If the local-part of the address does not contain an opaque string   for use in recipient identification, then the body must consist   "multipart/mixed" content [5] having at two parts, the first being a   "application/remote-printing" content-type (defined in Appendix A),   which will be used to generate a cover-sheet, and the second being an   arbitrary content-type corresponding to the information to be   printed.  If the local-part of the address does contain an opaque   string for use in recipient identification, then the body consists of   an arbitrary content-type corresponding to the information to be   printed.
  111.  
  112.    Regardless, the message is then sent to the remote printer server's   electronic mail address.
  113.  
  114. 3.1 Content-Types
  115.  
  116.    It should be noted that not all content-types have a natural printing   representation, e.g., an "audio" or "video" content.  For this   reason, the second part of the "multipart/mixed" content should be   one of the following:
  117.  
  118.    text/plain, message/rfc822, application/postscript image/tiff   (defined in Appendix B), any multipart.
  119.  
  120.    Note that:
  121.  
  122.       (1) With the "text/plain" content-type, not all character          sets may be available for printing.
  123.  
  124.       (2) With the "message" content-type, the subordinate content          will be processed recursively.
  125.  
  126.       (3) With the "application/postscript" content-type, the          remote printer server should evaluate the contents in a          safe execution environment.
  127.  
  128.       (4) With the "multipart" content-type the subordinate contents          will be processed recursively: for a "multipart/mixed" or          "multipart/digest" content, each subordinate content will          start on a new page, whilst for a "multipart/parallel" content,          all subordinate contents will, if possible, start on the same          page.  Naturally, when processing a "multipart/alternative"          content, only one subordinate content will be printed.
  129.  
  130. 3.2 Generating a Cover-Sheet
  131.  
  132.    If the "application/remote-printing" content-type is present,   this contains all the information necessary to generate a
  133.  
  134.  
  135.  
  136. Malamud & Rose                                                  [Page 4]
  137.  
  138. RFC 1528        Remote Printing -- Technical Procedures     October 1993
  139.  
  140.  
  141.    cover-sheet.  Otherwise, the cover-sheet must be generated   based on other information available.
  142.  
  143.    Typically, a cover sheet consists of three sections:
  144.  
  145.       o information identifying the originator;        o information identifying the recipient; and,
  146.  
  147.       o additional information supplied by the remote printer        server.
  148.  
  149.    To identify the originator, the remote printer server will use the   message headers, usually by stripping any trace headers (i.e.,   "Received" and "Return-Path") and then re-ordering the remaining   headers starting with the "From" header.
  150.  
  151.    To identify the recipient, the opaque string from the local- part of   the remote printer server's address is consulted.  For example, if   the remote printer server's address is
  152.  
  153.    remote-printer.Arlington_Hewes/Room_403@0.1.5.2.8.6.9.5.1.4.1.tpc.int
  154.  
  155.    then the opaque string
  156.  
  157.    Arlington_Hewes/Room_403
  158.  
  159.    is consulted.  lp When generating a cover-sheet using this opaque   string, the remote printer server will interpret an underscore   character ("_") as a space, and a solidus character ("/") as an end-   of-line sequence.  A remote printer server will interpret two   consecutive underscore characters in the opaque string as a single   underscore, and two consecutive solidus characters as a single   solidus.  So, the opaque string,
  160.  
  161.       Arlington_Hewes/Room_403
  162.  
  163.       might appear on the cover-sheet as
  164.  
  165.       To: Arlington Hewes      Room 403
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176. Malamud & Rose                                                  [Page 5]
  177.  
  178. RFC 1528        Remote Printing -- Technical Procedures     October 1993
  179.  
  180.  
  181. 3.3 Return Receipt
  182.  
  183.    When the remote printer server finishes its processing, a message is   returned to the originator, indicating either success (i.e., the   message was successfully sent to the facsimile device), or failure,   with an explanation (e.g., after several repeated attempts, there was   no answer).
  184.  
  185. 4.  Usage Examples
  186.  
  187. 4.1 Explicit Cover Sheet
  188.  
  189.    To: remote-printer@0.1.5.2.8.6.9.5.1.4.1.tpc.int   From: Carl Malamud <carl@malamud.com>   Date: Thu, 22 Jul 1993 08:38:00 -0800   Subject: First example   Message-ID: <19930722163800.1@malamud.com>   MIME-Version: 1.0   Content-Type: multipart/mixed;           boundary="----- =_aaaaaaaaaa0"
  190.  
  191.    ------- =_aaaaaaaaaa0   Content-Type: application/remote-printing
  192.  
  193.    Recipient:    Arlington Hewes   Telephone:    +1 415 968 1052   Facsimile:    +1 415 968 2510
  194.  
  195.    Originator:   Carl Malamud   Organization: Internet Multicasting Service   Address:      Suite 1155, The National Press Building                 Washington, DC 20045                 US   Telephone:    +1 202 628 2044   Facsimile:    +1 202 628 2042   EMail:        carl@malamud.com
  196.  
  197.    Any text appearing here would go on the cover-sheet.
  198.  
  199.    ------- =_aaaaaaaaaa0   Content-Type: text/plain; charset="us-ascii"
  200.  
  201.     Here are my comments...
  202.  
  203.    ------- =_aaaaaaaaaa0--
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210. Malamud & Rose                                                  [Page 6]
  211.  
  212. RFC 1528        Remote Printing -- Technical Procedures     October 1993
  213.  
  214.  
  215. 4.2 Implicit Cover Sheet
  216.  
  217. To:remote-printer.Arlington_Hewes/Room_403@0.1.5.2.8.6.9.5.1.4.1.tpc.int
  218. cc: Marshall Rose <mrose@dbc.mtview.ca.us>
  219. From: Carl Malamud <carl@malamud.com>
  220. Date: Thu, 22 Jul 1993 08:38:00 -0800
  221. Subject: Second example
  222. Message-ID: <19930722163800.2@malamud.com>
  223. MIME-Version: 1.0
  224. Content-Type: application/postscript
  225.  
  226.